<?php

namespace app\front\model\keyword;

use app\common\model\keyword\Keyword as KeywordModel;

/**
 * 关键词模型
 */
class Keyword extends KeywordModel
{
    /**
     * 获取列表
     */
    public function getLists($limit = 20)
    {
        return $this->where('status', '=', 1)
            ->order(['sort' => 'asc', 'create_time' => 'desc'])
            ->limit($limit)
            ->select();
    }
}